<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<script>
	$("document").ready(function() {
		$(".toggleDropdown").click(function() {
			$(this).next().slideToggle();
		});
	})
</script>

<h3 id="oceny">Statystyki - wybierz klasę i przedmiot</h3>
<div class="dropdownList">
<c:forEach items="${list}" var="listItem">
<a class="toggleDropdown" href="#">${listItem.key.className}</a>
<div class="dropdownListSmaller">
	<c:forEach items="${listItem.value}" var="subjectItem">
		<a href="<c:url value="/teacher/statistics/show" />?class=${listItem.key.classId}&subject=${subjectItem.subjectId}">${subjectItem.subjectName}</a><br />
	</c:forEach>
</div>
</c:forEach>
</div>
